assignTo

Copies an input ranges buffer into an image, ahead of time assigns all pixels to a specific color

@nogc @safe
Image
assignTo
(
IR
Image
Color
)
(,
ref Image destination
,
Color fillAs
)
if (
isImage!ImageImpl &&
&&
isColor!Color
)

Parameters

input IR

The pixel input range

destination Image

The output image that will be created, determines type to create as

fillAs Color

The color to assign to each pixel

Return Value

Type: Image

The destination image for composibility reasons

See Also

createImageFrom, copyInto, fillOn

Meta